import { message } from 'antd';

// 全局 message 工具函数
export const showMessage = {
  success: (content: string) => message.success(content),
  error: (content: string) => message.error(content),
  warning: (content: string) => message.warning(content),
  info: (content: string) => message.info(content),
  loading: (content: string) => message.loading(content),
};

// 或者更简洁的导出方式
export const { success, error, warning, info, loading } = message;
